package com.dz.user.web;

import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.plugins.Page;
import com.dz.user.entity.User;
import com.dz.user.service.UserService;

/**
 * <p>
 * 后台用户表 前端控制器
 * </p>
 *
 * @author star
 * @since 2017-06-27
 */
@RestController
public class UserControler {

	@Autowired
	private UserService userService;

	@RequestMapping("/list")
	@ApiOperation(value="用户集合",httpMethod="POST")
	public Page<User> list() {
		return userService.selectPage(new Page<User>(1, 10));
	}
}
